package com.qf.grabtickets.esvo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @version 1.0
 * @Author liujinchi
 * @Date 2023/3/11 13:01
 * @注释
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "coupon_info",shards = 1,replicas = 1,createIndex = false)
public class EsLogs {

    @Id
    @Field(type = FieldType.Long)
    private Long id;

    @Field(type = FieldType.Text,analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
    private String logs;
}
